﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Tetris
{
    class Node
    {
        public int XNode { get; set; }
        public int YNode { get; set; }
        public ConsoleColor nodeColor;

        public Node(int x, int y, ConsoleColor color)
        {
            XNode = x;
            YNode = y;
            nodeColor = color;
        }

        public void MoveUp()
        {
            YNode -= 1;
        }

        public void MoveDown()
        {
            YNode += 1;
        }

        public void MoveLeft()
        {
            XNode -= 1;
        }

        public void MoveRight()
        {
            XNode += 1;
        }
    }
}
